{% load admin_interface_tags i18n %}

<div class="list-filter-dropdown">
    <h3 {% if spec.lookup_val or spec.value %}class="active"{% endif %}>{% blocktranslate with filter_title=title %} By {{ filter_title }} {% endblocktranslate %}</h3>
    <div align="right">
        <select>
        {% for choice in choices %}
            <option {% if choice.selected %}selected{% endif %} value="{{ choice.query_string|iriencode }}">{{ choice.display }}</option>
        {% endfor %}
        </select>
    </div>
</div>

<script id="admin-interface-dropdown-filter" src="{% get_admin_interface_static 'admin_interface/dropdown-filter/dropdown-filter.js' %}"></script>
